package test.serverframe.armc.server.manager.service.impl;

import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import test.serverframe.armc.server.manager.dao.mapper.LinkParamMapper;
import test.serverframe.armc.server.manager.domain.LinkParam;
import test.serverframe.armc.server.manager.service.LinkParamService;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

@Service
public class LinkParamServiceImpl implements LinkParamService {

	@Autowired
	private LinkParamMapper linkParamMapper;
	
	@Override
	public int insert(LinkParam record) {
		return 0;
	}

	@Override
	public int insertSelective(LinkParam record) {
		return 0;
	}
	
	@Override
	public LinkParam selectByPrimaryKey(String id) {
		return null;
	}

	@Override
	public int updateByPrimaryKey(LinkParam record) {
		return 0;
	}

	@Override
	public int updateByPrimaryKeySelective(LinkParam record) {
		return linkParamMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return 0;
	}

	@Override
	public PageInfo<LinkParam> pageFind(int pageNum, int pageSize, Object parameter)
			throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {
		return null;
	}

	@Override
	public List<LinkParam> selectParamByTaskId(String taskId) {
		return linkParamMapper.selectParamByTaskId(taskId);
	}

	@Override
	public LinkParam selectByNodeId(String nodeId) {
		return linkParamMapper.selectByInterRelateTaskId(nodeId);
	}

	@Override
	public List<String> selectParentByNodeId(String nodeId) {
		return null;//linkParamMapper.selectParentByNodeId(nodeId);
	}
	
}